package com.xiaobai.model.vo.system.role;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xiaobai.common.utils.config.Tree.TreeNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
public class RoleTreeVO implements TreeNode<Long, RoleTreeVO> {

    //子节点数据
    private List<RoleTreeVO> nodes;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "父主键")
    private Long parentId;

    @Schema(description = "角色名")
    private String roleName;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "角色别名")
    private String roleAlias;

}
